<script setup>
const props = defineProps({
  product: {
    type: Object,
    default: () => ({})
  }
})
</script>

<template>
  <div class="goods-detail" v-if="product.detail" v-html="product.detail">
  </div>
  <div v-else>
    <el-empty>
      <template #description>
        <span>暂无商品详情</span>
      </template>
    </el-empty>
  </div>
</template>